<?php
namespace common\core\base;

use yii\base\Module;

/**
 * Module base class
 * 
 * @author Xuegui Yuan <yuanxuegui@163.com>
 */
class BaseModule extends Module
{

    /**
     *
     * @var string Alias for module
     */
    public $alias;

    public function init()
    {
        parent::init();
        
        if ($this->alias) {
            // set alias
            $this->setAliases([
                $this->alias => __DIR__
            ]);
        }
    }
}